package com.atguigu.gulimail.order.service;

import com.atguigu.gulimail.order.vo.OrderConfirmVo;
import com.atguigu.gulimail.order.vo.OrderSubmitResponseVo;
import com.atguigu.gulimail.order.vo.OrderSubmitVo;
import com.atguigu.gulimail.order.vo.PayVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author songshaoqiu
 * @email songshaoqiu@gmail.com
 * @date 2022-01-07 17:05:48
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;


    OrderSubmitResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderWithOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity) throws ExecutionException, InterruptedException;

    PayVo getPayVoBySn(String orderSn);

    PageUtils getOrderList(Map<String, Object> params) ;

}

